package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.SelectVo;
import com.zb.entity.ZjCodeBatchGoods;
import com.zb.extend.CodeBatchGoodsExtend;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 编码批次商品表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-09-07
 */
@Repository
public interface ZjCodeBatchGoodsMapper extends BaseMapper<ZjCodeBatchGoods> {

    /**
     * 分页获取批次编码商品信息
     * @param batchId 批次ID
     * @param selectVo 搜索对象
     * @return
     */
    List<CodeBatchGoodsExtend> codeBatchGoodsPageSelect(@Param("batchId") Long batchId, @Param("selectVo") SelectVo selectVo);

    /**
     * 分页获取批次编码商品信息
     * @param batchId 批次ID
     * @param selectVo 搜索对象
     * @return
     */
    long codeBatchGoodsPageSelectCount(@Param("batchId") Long batchId, @Param("selectVo") SelectVo selectVo);


}
